package com.aaron.test.singleton.lazy;

public class LazySingleton {
	
	//基本的单例模式实现
	private static  LazySingleton singleClass = null;
	
	
	private LazySingleton(){
		System.out.println("call the private LazySingleton constructor... ");
	}
	
	public static LazySingleton getInstance(){
		if(null == singleClass){
			singleClass = new LazySingleton();
		}
		return singleClass;
		
	}
	
}
